import request from '@/utils/httpInstance'
export function getCategoryAPI(id) {
  return request({
    url: '/category',
    params: {
      id
    }
  })
}

export function getCategoryFilterAPI(id) {
  return request({
    url: '/category/sub/filter',
    params: {
      id
    }
  })
}


export function getSubCategoryAPI(data) {
  return request({
    url: '/category/goods/temporary',
    method: 'POST',
    data
    
  })
}